package cn.itsource.ymcc.feign.client;

import cn.itsource.ymcc.dto.CourseDocumentDto;
import cn.itsource.ymcc.feign.factory.CourseSearchFeignFallbackFactory;
import cn.itsource.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(value = "service-search",fallbackFactory = CourseSearchFeignFallbackFactory.class)
public interface CourseSearchFeignClient {

    @RequestMapping("/search/courseOnline")
    public JSONResult courseOnline(@RequestBody CourseDocumentDto courseDocumentDto);


}
